package com.njcb.game.portal;

import com.njcb.ams.support.autoconfigure.annotation.AmsApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.WebApplicationInitializer;

/**
 * @author LOONG
 */
@AmsApplication(scanBasePackages = {"com.njcb"})
@EnableFeignClients
public class GameApplication extends SpringBootServletInitializer implements WebApplicationInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(GameApplication.class);
    }

    public static void main(String[] args) {
    	SpringApplication.run(GameApplication.class, args);
    }

}
